package pl.edu.agh.sr.lab3.zad2.impl.server;

import pl.edu.agh.sr.lab3.zad2.generated.ItemBPOA;

public class ItemBImpl extends ItemBPOA {
	private String name;

	public ItemBImpl(String name) {
		this.name = name;
	}

	@Override
	public float actionB(String a) {
		System.out.println("In ItemBImpl::actionB()");
		return (float) (a.length()*0.1);
	}

	@Override
	public String name() {
		return name;
	}

	@Override
	public int get_item_age() {
		return name.length();
	}

}
